package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.ItemCatalogQueryDto;
import com.group.eams.pojo.entity.ItemCatalog;
import com.group.eams.pojo.vo.ItemCatalogListVo;
import com.group.eams.service.ItemCatalogService;
import com.group.eams.mapper.ItemCatalogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【item_catalog(物品档案)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class ItemCatalogServiceImpl extends ServiceImpl<ItemCatalogMapper, ItemCatalog>
implements ItemCatalogService{
    @Autowired
    private ItemCatalogMapper itemCatalogMapper;

    @Override
    public Page<ItemCatalogListVo> findByQueryDto(ItemCatalogQueryDto itemCatalogQueryDto) {
        Page<ItemCatalogListVo> page = new Page<>(itemCatalogQueryDto.getPage(), itemCatalogQueryDto.getLimit());
        return itemCatalogMapper.findByQueryDto(page,itemCatalogQueryDto);
    }
}
